package com.kotlin.flong.reflection

import kotlin.reflect.jvm.javaField
import kotlin.reflect.jvm.javaGetter
import kotlin.reflect.jvm.javaSetter

/**
 * @Author:liangjl
 * @Date: 2020/7/12-8:52
 * @Eamil:jilongliang@sina.com
 * @Description:
 */
class MyTest16 {
    var name: String = "Flin"
    var price: Double = 37.0
}

var myTitle = "Java"

fun main() {
    var topPro = ::myTitle
    println(topPro.javaField)
    println(topPro.javaSetter)
    println(topPro.javaGetter)

    println("================")

    var name =  MyTest16::name
    println(name.javaField)
    println(name.javaSetter)
    println(name.javaGetter)

    println("================")
}